package com.hilon.segment.jpa.service.impl;

import com.hilon.segment.jpa.entity.ProductLine;
import com.hilon.segment.jpa.repository.ProductLineRepository;
import com.hilon.segment.jpa.service.ProductLineService;
import com.hilon.base.service.EntityHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Transactional(rollbackFor = Exception.class)
@Service
public class ProductLineServiceImpl extends EntityHandle<ProductLine> implements ProductLineService {
    private final ProductLineRepository productLineRepository;

    public ProductLineServiceImpl(ProductLineRepository productLineRepository) {
        this.productLineRepository = productLineRepository;
        super.buildCurRepository(productLineRepository);
    }
}
